<div id="favorites" class="container">
	<h5>Favorites <a href="<?=$page->GetUrl('edit_favorites')?>">(edit)</a></h5>
	<ul>
		<? if ( $page->Favorites() ): ?>
			<? foreach ( $page->Favorites()->Values as $smiley ): ?>
				<li class="smiley favorite">
					<p class="image">
						<img src="<?=$smiley->Url?>" width="<?=$smiley->Width?>" height="<?=$smiley->Height?>" />
					</p>
					<div class="code" title="Click to hilight and copy">
						<p class="html">
							<input type="text" value="<?=htmlentities('<img src="' . $smiley->Url . '" />')?>" />
						</p>
						<p class="ubb">
							<input type="text" value="[img]<?=$smiley->Url?>[/img]" />
						</p>
						<?=$smiley->Code?>
					</div>
				</li>
			<? endforeach ?>
		<? endif ?>
	</ul>					
</div>